import zlib = require('zlib');
export class UtilsString{
    public static zlibEncode(str:string):string{
        return zlib.deflateSync(str).toString('base64');
    }

    public static zlibDecode(str:string):string{
        return zlib.inflateSync(Buffer.from(str, 'base64')).toString();
    }
}